package com.sasis.dao.ibatis;

import java.util.Collection;

import com.sasis.dao.FunctionDao;
import com.sasis.model.Function;

public class FunctionDaoIbatisImpl extends BaseDaoIbatisImpl implements FunctionDao {

	public FunctionDaoIbatisImpl() {
		super(Function.class);
	}
	
	public Function loadByUrl(String url) {
		return (Function)getSqlMapClientWrapper().queryForObject("loadByUrl", url);
	}
	
	public Collection findByRoot() {
		return getSqlMapClientWrapper().queryForList("findByRoot");
	}

	public Collection findByParent(Long parentId) {
		return getSqlMapClientWrapper().queryForList("findByParent", parentId);
	}

}
